package synchonized;

public class SynchronizedDemo1 implements Runnable {

    public static int num=0;


    @Override
    public void run() {
        synchronized(SynchronizedDemo1.class){
            for (int i=0; i < 10000; i++) {
                ++num;
            }
        }
    }




}
